from spain.helpers.func import *


@singleton
class Config:
    IS_DEBUG = False
    WEB_PORT = 3000

    def __init__(self):
        print('init config')
        # self.init_envs()
        # self.last_modify_time = get_file_modify_time(self.CONFIG_FILE)
        # if Config().is_slave():
        #     self.refresh_configs(True)
        # else:
        #     create_thread_and_run(self, 'watch_file_change', False)

    @classmethod
    def run(cls):
        print('rund')
        self = cls()
        # self.start()

